import { createApp } from "vue";
import { createPinia } from 'pinia'
import App from "./App.vue";
import router from "./router";
import 'element-plus/dist/index.css'
import 'nprogress/nprogress.css'
// 1.svgIcon的组件
import svgIcon from '@/components/SvgIcon/index.vue';
// 2.打包svg图片
import './assets/icons' // icon

import "reset-css";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App);
const pinia = createPinia();
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// 3.全局注册svgIcon
app.component('svg-icon', svgIcon)
app.use(pinia);
app.use(router)
app.mount("#app");
